#include <QtGui/QApplication>
#include "imageviewer.h"
#include <qtranslator.h>
#include <qt_windows.h>
int main(int argc, char *argv[])
{

    QApplication a(argc, argv);
	QTranslator translator(0);
	//translator.load("zh_CN.qm", ".");
	translator.load(QString(":/lans/")+"zh_CN.qm");
	a.installTranslator(&translator);
	if(argc>1)
	{
		ImageViewer w(argv[1]);
		w.show();
		return a.exec();
	}else
	{
		ImageViewer w;
		w.show();
		return a.exec();
	}

}

